<?php
$user = new User();
$shop = new Shop();
$shop->checkUser();//检查用户合法性，防止攻击

$cart = $shop->getCart();
$pp = 0;

if(isset($pram[0])){
	if($shop->delCart($pram[0]))echo "<script type='text/javascript'>location.href='/cart1';</script>";
	else echo "<script type='text/javascript'>alert('非法操作');</script>";
}
?>